using System;
using System.Data;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace 畜牧业审核程序国产;

public partial class FromSpringToNowTableMsgs : Window
{
    public FromSpringToNowTableMsgs()
    {
        InitializeComponent();
    }
    public FromSpringToNowTableMsgs(DataTable dt)
    {
        InitializeComponent();
        if (dt!=null && dt.Rows.Count>0)
        {
            this.TxtAllTablesMsgs.Text = "表名---------------------导入时间---------------------记录条数" + Environment.NewLine;
            for (int i = 0; i < dt.Rows.Count; i++)
            {DataRow row = dt.Rows[i];
                this.TxtAllTablesMsgs.Text += row[0].ToString() + "----" + row[1].ToString() + "----" +
                                              row[2].ToString() + Environment.NewLine;
            }
        }
    }
}